package com.sikao.app.dao;

import android.content.Context;

import com.sikao.app.bean.AddCollectBean;

import com.sikao.app.bean.CategoryAttrNewBean;
import com.sikao.app.net.OnNetBackListener;
import com.sikao.app.net.SpotsCallBack;
import com.sikao.app.utils.TimeUtil;
import com.squareup.okhttp.Response;

/**
 * Created by Sun on 2016/8/10
 */
public class CategoryAttrModel extends BaseModel {
	public CategoryAttrModel(Context context, OnNetBackListener listener) {
		super(context, listener);
	}

	@Override
	public void request(String data, boolean isShow) {
		String[] array = {"trade", "mall", "ApiGoods", "readAddGoodsStepTwo", time, data};//[51-86]读取发布商品[step-2]

		map = getMap(array);
		post(map, new SpotsCallBack<CategoryAttrNewBean>(context, isShow) {

			@Override
			public void onSuccess(Response response, CategoryAttrNewBean result) {
				onNetBackListener.netBack(result);
			}

			@Override
			public void onError(Response response, int code, Exception e) {
			}
		});
	}
}
